//
//  UIImageView+GXCircleImageView.m
//  GxLanOuProject
//
//  Created by 甘霞 on 15/10/24.
//  Copyright © 2015年 甘霞. All rights reserved.
//

#import "UIImageView+GXCircleImageView.h"  // 圆形视图(第二页头部视图上的)

@implementation UIImageView (GXCircleImageView)

- (void)setCircleImageViewFrame:(CGRect)frame {
    [self setFrame:frame];
    self.layer.cornerRadius = frame.size.width / 2.0;
    self.layer.masksToBounds = YES;
}

+ (UIImageView *)initImageViewWithFrame:(CGRect)frame tag:(NSInteger)tag image:(NSString *)imageName{
    UIImageView *image = [[UIImageView alloc] init];
    image.frame = frame;
    image.image = [UIImage imageNamed:imageName];
    return image;
}

@end
